#!/usr/bin/env python
#coding=utf-8
# author:wade
# contact: 317909531@qq.com
# datetime:2020/4/28 14:50

"""
文件说明：用于这个app的数据序列化建设
"""

# 学校序列化
from rest_framework import serializers

from schoolBook import models

#图书表序列化
class B_MS_BookLibrary_serializers(serializers.ModelSerializer):
    class Meta:
        model = models.MS_BookLibrary
        fields = '__all__'

#学校表序列化
class B_MS_COLLEGE_serializers(serializers.ModelSerializer):
    class Meta:
        model = models.MS_COLLEGE
        fields = '__all__'